import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;


public class GUITestScriptPanel extends JFrame{
	
	private		JScrollPane scrollPane;
	private     JPanel conceptPanel;
	private 	JTable conceptTable;
	private 	String columnNames [] = {"Concept Name"};
	private		String tableData [][];
	private 	String conceptName ;
	
	public GUITestScriptPanel()
	{	/*//set the properties of the frame
		setTitle("Test Script Mapper");
		setSize(200,100);
		setVisible(true);
		
		
		//Initiate the panel
		conceptPanel = new JPanel();
		conceptPanel.setLayout(new BorderLayout());
		getContentPane().add(conceptPanel);
		
		//create data for the table
		
		//createColumns(conceptName);
		//createData();		
		conceptTable = new JTable(tableData, columnNames);
		
		//Initiate the scroll pane with the concept table
		scrollPane = new JScrollPane(conceptTable);
		conceptPanel.add(scrollPane, BorderLayout.CENTER);
		
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		//add(jTabbedPane1);
		pack();
		//setTitle("XML Tree Demo");
		setLocationRelativeTo(null);
		setVisible(true);*/
		
		
	}

	/*private void createData() {
		// Create column string labels
		columnNames = new String[8];

		for( int iCtr = 0; iCtr < 8; iCtr++ ){
			columnNames[iCtr] = "Col:" + iCtr;
	}

		
	}*/

	void createColumns(String conceptName) {
		// Create data for each element
		tableData = new String[1][1];
		
		tableData[0][0] = conceptName;
		//set the properties of the frame
		
		
		
		//Initiate the panel
		conceptPanel = new JPanel();
		conceptPanel.setLayout(new BorderLayout());
		getContentPane().add(conceptPanel);
		
		//create data for the table
		
		//createColumns(conceptName);
		//createData();		
		conceptTable = new JTable(tableData, columnNames);
		
		//Initiate the scroll pane with the concept table
		scrollPane = new JScrollPane(conceptTable);
		conceptPanel.add(scrollPane, BorderLayout.CENTER);
		
		setTitle("Test Script Mapper");
		setSize(200,100);
		setVisible(true);
		

		/*for( int iY = 0; iY < 100; iY++ )
		{
			for( int iX = 0; iX < 8; iX++ )
			{
				tableData[iY][iX] = "" + iX + "," + iY;
			}
		}*/

		
	}

	
		
	
	
}
